package com.orphan.marketBack.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.orphan.marketBack.dto.OrderReturnDto;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("OrderReturnMapper")
public interface OrderReturnMapper extends BaseMapper<OrderReturnDto> {
    /**
     * 查询所有退货订单信息
     * @return
     */
    @Select("select * from order_returns2,order_detail4")
    List<OrderReturnDto> selectOrderReturn();

    List<OrderReturnDto> selectOrderReturnByGoodsName(OrderReturnDto orderReturnDto);
}
